package com.antdesignbackend.backend.form.saleDeclarationB.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 跨省销售用产地检疫申报单(动物B)
 *
 * @author 林宇杰
 * @email saleDeclarationB
 * @date 2020-08-14 09:55:43
 */

@Data
@TableName(value = "t_saledeclarationb")
public class SaleDeclarationB implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//申报人(个人填写名字,单位填写单位全称)
	@TableField(value = "Declarant")
	private String declarant;
	//联系电话
	@TableField(value = "Phone")
	private String phone;
	//购买人
	@TableField(value = "Buyer")
	private String buyer;
	//购买人电话
	@TableField(value = "BuyerPhone")
	private String buyerPhone;
	//动物种类
	@TableField(value = "AnimalType")
	private String animalType;
	//数量(头、羽)
	@TableField(value = "Number")
	private Integer number;
	//耳标号从(猪)1350481、(禽）SM
	@TableField(value = "StarEar")
	private String starEar;
	//至(猪)1350481(禽)SM
	@TableField(value = "EndEar")
	private String endEar;
	//用途
	@TableField(value = "Purpose")
	private String purpose;
	//启运地点
	@TableField(value = "StarAddress")
	private String starAddress;
	//村名
	@TableField(value = "VillageName")
	private String villageName;
	//当前地点
	@TableField(value = "NowAddress")
	private String nowAddress;
	//到达省
	@TableField(value = "ArriveProvince")
	private Integer arriveProvince;
	//到达市
	@TableField(value = "ArriveCity")
	private Integer arriveCity;
	//到达区县
	@TableField(value = "ArriveDistrict")
	private Integer arriveDistrict;
	//到达乡镇
	@TableField(value = "ArriveTownship")
	private Integer arriveTownship;
	//到达地点
	@TableField(value = "ArriveAddress")
	private String arriveAddress;
	//到达完整地点
	@TableField(value = "FullArriveAddress")
	private String fullArriveAddress;
	//屠宰或饲养场全称
	@TableField(value = "Slaughter")
	private String slaughter;
	//动物状态图片
	@TableField(value = "AnimalPhoto")
	private String animalPhoto;
	//动物运载车辆图片
	@TableField(value = "CarPhoto")
	private String carPhoto;
	//销售时间
	@TableField(value = "SaleDate")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date saleDate;
	//检测报告单照片(猪售辖区外禽类跨省出售)
	@TableField(value = "ReportPhoto")
	private String reportPhoto;
	//准调证照片(出售到永安辖区外,本省内时)
	@TableField(value = "CertificatePhoto")
	private String certificatePhoto;
	//农产品合格证/追溯码照片
	@TableField(value = "AgriculturePhoto")
	private String agriculturePhoto;
	//其它照片
	@TableField(value = "PigCarPhoto")
	private String pigCarPhoto;
	//备注
	@TableField(value = "Remark")
	private String remark;
	//状态，0未通过，1通过，2审批中，3驳回
	@TableField(value = "Types")
	private Integer types;
	//创建人
	@TableField(value = "CreateBy")
	private Integer createBy;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "CreateTime")
	private Date createTime;
	//企业ID
	@TableField(value = "Eid")
	private Integer eid;
	//销售动物种类
	@TableField(value = "SaleAnimalType")
	private String saleAnimalType;
	//批次号
	@TableField(value = "BatchNumber")
	private Integer batchNumber;
	//动物明细表主键ID
	@TableField(value = "Aid")
	private Integer aid;
	//审批意见
	@TableField(value = "Opinion")
	private String opinion;
	//审批人
	@TableField(value = "AprovalId")
	private Integer aprovalId;
	@TableField(value = "Aproval")
	private String aproval;
	//审批时间
	@TableField(value = "AprovalTime")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date aprovalTime;
	//出证人
	@TableField(value = "CertificateId")
	private Integer certificateId;
	@TableField(value = "Certificate")
	private String certificate;
	//出证时间
	@TableField(value = "CertificateTime")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date certificateTime;
	//出证人签字
	@TableField(value = "Witness")
	private String witness;
	//畜主签字
	@TableField(value = "Livestock")
	private String livestock;

	//到达省
	@TableField(value = "ArriveProvinceName")
	private String arriveProvinceName;
	//到达乡镇
	@TableField(value = "ArriveTownshipName")
	private String arriveTownshipName;
	//到达市名称
	@TableField(value = "ArriveCityName")
	private String arriveCityName;
	//到达区县名称
	@TableField(value = "ArriveDistrictName")
	private String arriveDistrictName;
}
